<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Documentde方法</title>
</head>
<body>
    <div id="app" name="div"></div>
    <div class="container" name="div">hello</div>
    <div class="container">hello</div>
    <div>hello</div>
    <div>hello</div>
</body>
<script>
    // var d = document.getElementById("app");

    // var d = document.getElementsByTagName('div')

    // var d = document.getElementsByName('div')

    // var d = document.getElementsByClassName('container');

    console.log(d);
</script>
</html>